package com.zhixiang.wbl.visitor.Utils;

import java.util.Map;

/**
 * Created by dongzhixiang on 16/5/17.
 */
public class URLUtil 
{
    static public String getURL(String baseurl, Map<String,String> map)
    {
        String url=baseurl+"?";
        for(Map.Entry<String, String> entry:map.entrySet())
        {
          url = url +entry.getKey()+"="+entry.getValue()+"&";
        }
        url = url.substring(0,url.length()-1);
        return url;
    }
}
